
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Aircraft Status Report</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <link rel="stylesheet" type="text/css" href="css/menu.css" />
        <link rel="stylesheet" type="text/css" href="themes/table/blue/style.css" />
        <link rel="stylesheet" type="text/css" href="css/idealforms/idealforms.css"/>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/menu.js"></script>
        <script type="text/javascript" src="js/jquery.idealforms.js"></script>
        <script type="text/javascript" src="js/idealform.js"></script>

        <script type="text/javascript">
            function redirectMe (sel) {
                var url = sel[sel.selectedIndex].value;
                window.location = url;
            }
          
        </script>
    </head>
    <body>
        <div id="main_container">
            <jsp:include page="loginheader.jsp"/> <!-- end header -->
            <div class="main_content">
                <jsp:include page="${sessionScope.menuChoice}" /> <!-- include menu -->
                <div class="center_content">
                    <div class="left_content">
                        <div class="sidebar_box">
                            <div class="sidebar_box_top"></div>
                            <div class="sidebar_box_content">
                                <h3>Aircraft List</h3>
                                <p>
                                    <div id="planeList">
                                        <select onchange="redirectMe(this);">
                                            <option>Pick a plane</option>
                                            <c:forEach var="plane" items="${planes}">
                                                <option value="AircraftStatusReport?planeID=${plane.id}" >${plane.model} ${plane.manufacturer}</option>
                                            </c:forEach>
                                        </select>
                                        <form>
                                            <input type="button" value="Print Report" onClick="window.print()"></input>
                                        </form>

                                    </div>
                                </p>
                            </div>
                            <div class="sidebar_box_bottom"></div>
                        </div>
                    </div> <!-- end left content -->
                    <div class="right_content">
                        <div id="planeform">
                            <jsp:include page="reportplaneview.jsp" />
                        </div>
                        <br></br><br></br>
                    </div><!-- end of right content-->
                </div>   <!--end of center content -->
                <div class="clear"></div>
            </div> <!--end of main content-->
            <div class="footer">
                <div class="left_footer"><a href="http://apycom.com/"></a>Red Team &copy;</div>
                <div class="right_footer"></div>
            </div> <!-- end footer -->
        </div> <!-- end main container -->
    </body>
</html>